# encoding: utf-8
"""
Magnetic Field Equations.py

Created by Vivek Bhagwat on 2008-03-21.
Part of physicslibrary project on Google Code.
SVN: http://physicslibrary.googlecode.com/svn/trunk/
"""

import sys
import os
import Vector3D

class MagneticEquations(object):
	"""docstring for MagneticEquations"""
	def __init__(self):
		super(MagneticEquations, self).__init__()
	
	def getCurrent(self, vector_B, vector_v):
		if isinstance(vector_B, Vector3D):
			if isinstance(vector_v, Vector3D):
				return vector_B.cross(vector_v)
		else:
			raise ValueError('both arguments must be Vector3D objects')
	

def main():
	#B = Vector3D(1, 1, 1)
	#v = Vector3D(-1, 4, 2)
	#cool = getCurrent(B, v)
	#print cool
	print "test"
	B = Vector3D(1, 1, 1)
	print B


if __name__ == '__main__':
	main()

